package com.example.lottery_system.common.errcode;

import com.fasterxml.jackson.core.ErrorReportConfiguration;

public interface ServiceErrorCodeConstant {
    /**
     * 人员模块具体异常
     */
    ErrorCode REGISTER_PARAM_EMPTY = new ErrorCode(100,"服务层注册参数为空！");
    ErrorCode REGISTER_MAIL_FORMAT_ERROR = new ErrorCode(102,"邮箱格式错误！");

    ErrorCode REGISTER_MAIL_EXIST = new ErrorCode(103,"邮箱已被使用！");

    ErrorCode REGISTER_PASSWORD_FORMAT_ERROR = new ErrorCode(104,"密码不合法，不允许少于六位或高于十二位!");

    ErrorCode REGISTER_IDENTITY_ERROR = new ErrorCode(105,"身份信息错误！");

    ErrorCode REGISTER_ADMIN_PASSWORD_NO_EXIST = new ErrorCode(106,"管理员的密码不存在!");

    ErrorCode REGISTER_PHONE_FORMAT_ERROR = new ErrorCode(107,"输入的手机号有误！");

    ErrorCode REGISTER_PHONE_EXIST_ERROR = new ErrorCode(108,"手机已被使用！");


    ErrorCode REGISTER_INSERT_ERROR = new ErrorCode(109,"注册数据异常，请联系客服!");

    ErrorCode USER_DELETE_IS_EMPTY = new ErrorCode(110,"需要删除的用户不存在!");

    ErrorCode USER_DELETE_ERROR = new ErrorCode(111,"用户删除异常!");


    /**
     * 验证码服务异常
     */
    ErrorCode RECAPTCHA_CODE_PHONE_ISNULL = new ErrorCode(201,"验证码手机号不能为空!");

    ErrorCode RECAPTCHA_CODE_OUT_TIME = new ErrorCode(202,"验证码失效!");

    ErrorCode LOGIN_PARAM_ERROR = new ErrorCode(203,"登录参数异常!");

    ErrorCode LOGIN_USERNAME_ERROR = new ErrorCode(204,"用户名输入错误!");
    ErrorCode LOGIN_USERNAME_NOT_EXIST = new ErrorCode(204,"用户名不存在,您当前未注册账号!");

    ErrorCode LOGIN_PASSWORD_ERROR = new ErrorCode(205,"密码错误!");


    ErrorCode LOGIN_CODE_ERROR = new ErrorCode(206,"验证码错误");

    ErrorCode RECAPTCHA_CODE_EMAIL_ISNULL = new ErrorCode(207,"验证码邮箱不能为空!");


    /**
     * 奖品模块异常
     */
    ErrorCode PRIZE_PIC_UPLOAD_ERROR = new ErrorCode(300,"奖品图片上传失败!");

    ErrorCode PRIZE_INSERT_ERROR = new ErrorCode(301,"奖品保存失败");

    ErrorCode PRIZE_DELETE_IS_EMPTY = new ErrorCode(302,"需要删除的奖品为空!");

    ErrorCode PRIZE_DELETE_ERROR = new ErrorCode(303,"奖品删除异常!");
    /**
     * 活动模块异常
     */

    ErrorCode ACTIVITY_PARAM_IS_EMPTY = new ErrorCode(400,"活动信息为空!");

    ErrorCode ACTIVITY_PRIZE_NOT_EXIST = new ErrorCode(401,"活动奖品不存在!");

    ErrorCode ACTIVITY_USER_NOT_EXIST = new ErrorCode(402,"活动用户不存在!");

    ErrorCode ACTIVITY_PRIZE_USER_ERROR = new ErrorCode(403,"用户和奖品匹配错误!");

    ErrorCode CACHE_ACTIVITY_IS_EMPTY = new ErrorCode(404,"要缓存的活动id为空!");

    ErrorCode CACHE_ACTIVITY_ERROR = new ErrorCode(405,"存储活动异常!");


    ErrorCode ACTIVITY_DELETE_ERROR = new ErrorCode(406,"活动删除异常!");

    /**
     * 抽奖模块异常
     */

    ErrorCode DRAW_ACTIVITY_IS_EMPTY = new ErrorCode(500,"抽奖活动或奖品不存在!");

    ErrorCode DRAW_ACTIVITY_FINISHED = new ErrorCode(501,"活动已结束!");

    ErrorCode DRAW_ACTIVITY_PRIZE_FINISHED = new ErrorCode(502,"奖品已被抽取!");

    ErrorCode DRAW_ACTIVITY_PRIZE_USERS_ERROR = new ErrorCode(503,"活动奖品与活动id 不匹配!");

    ErrorCode DRAW_QUEUE_ERROR = new ErrorCode(504,"消息队列处理异常!");



}
